
#include <stdio.h>

main()
{
     int c;
     long ns, nt, nn;

     ns = nt = nn = 0;
     while ((c = getchar()) != EOF){
	  if (c == ' ') ++ns;
	  if (c == '\t') ++nt;
	  if (c == '\n') ++nn;
     }
     printf("%ld\t%ld\t%ld\n", ns, nt, nn);
}
